]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
quickSettings: Fix slider accessibility
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 18 Aug 2022 08:28:23 +0000 (10:28 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 18 Aug 2022 23:00:12 +0000 (23:00 +0000)
Since we put the actual slider into a bin to get a proper focus
indication, the slider isn't focused anymore and its accessible object
is therefore invisible to the screen reader.

Fix this by passing the slider's accessible object to the actor
that takes the focus.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2431>

js/ui/quickSettings.js

index 50dbf6f3516dbf3745640ee742e37d2054e1ace2..faa87601fc770fbd7726713d33c21532f4f1dbe8 100644 (file)
@@ -195,6 +195,7 @@ var QuickSlider = GObject.registerClass({
         });
         box.add_child(sliderBin);
 
+        sliderBin.set_accessible(this.slider.get_accessible());
         sliderBin.connect('event', (bin, event) => this.slider.event(event, false));
 
         this._menuButton = new St.Button({